function handleSpeedDesc(type, item, userInfo) {
	// 1项目，2增减项列表，3售后列表，4优惠审批，5工程管理（施工），6.收款单，7.付款单
	let res = '--';
	if (type == 1) {
		switch (Number(item.status)) {
			case 1000:
				res = '等待客户总监分配客户经理';
				break;
			case 1010:
				res = '等待客户经理选择勘场';
				break;
			case 1015:
				res = '等待客户经理或客户提交设计图';
				break;
			case 1020:
				res = '等待客户经理提交勘场费用信息';
				break;
			case 1025:
				res = '等待财务确认勘场费用信息';
				break;
			case 1030:
				res = '等待工程部经理分配工程经理';
				break;
			case 1045:
				res = '等待工程经理提交勘场报告';
				break;
			case 1055:
				res = '等待设计师上传勘场资料';
				break;
			case 1060:
				res = '等待客户经理或客户提交设计图';
				break;
			case 1065:
				res = '等待客户经理申请报价';
				break;
			case 1070:
				res = '等待造价主管分配造价员和工程部经理分配工程经理';
				break;
			case 1080:
				if (item.engineering_manager_id === 0 && ![4, 5].includes(userInfo.position_id)) {
					res = '等待分配施工工程经理';
				} else {
					res = '等待造价员报价';
				}
				break;
			case 1090:
				if (item.engineering_manager_id === 0) {
					res = '等待分配施工工程经理';
				} else {
					res = '等待工程经理审核';
				}
				break;
			case 1092:
				res = '等待造价主管审核';
				break;
			case 1095:
				res = '等待客户经理对客报价';
				break;
			case 1100:
				res = '等待客户经理签订合约';
				break;
				// case 1102:
				//   res = '等待客户经理签订合约';
				//   break;
			case 1105:
				res = '等待提交预付款信息';
				break;
			case 1110:
				res = '等待财务确认预付款信息';
				break;
			case 1115:
				res = '等待工程监理启动';
				break;
			case 1118:
				res = '可开始施工';
				break;
			case 1120:
				res = '节点验收中，待客户经理提交进度款';
				break;
			case 1125:
				res = '等待客户经理确认增减项';
				break;
			case 1130:
				res = '等待造价员出具项目结算单';
				break;
			case 1135:
				res = '等待工程经理审核';
				break;
			case 1138:
				res = '等待造价主管审核';
				break;
			case 1140:
				res = '等待客户经理提交尾款信息';
				break;
			case 1145:
				res = '等待客户总监审核尾款信息';
				break;
			case 1147:
				res = '等待财务确认尾款信息';
				break;
			case 1150:
				res = '项目完成';
				break;
			case 1155:
				res = '用户已完成评价，快来看吧';
				break;
			case 1500:
				res = '很遗憾，项目被取消了';
				break;
		}
	} else if (type == 2) {
		switch (item.change_status) {
			case 10:
				res = '等待造价员报价';
				break;
			case 20:
				res = '等待工程经理审核';
				break;
			case 25:
				res = '被工程经理拒绝';
				break;
			case 30:
				res = '等待造价主管审核';
				break;
			case 35:
				res = '被造价主管拒绝';
				break;
			case 40:
				res = '等待客户经理终审';
				break;
			case 45:
				res = '被客户经理审核拒绝';
				break;
			case 50:
				res = '等待财务确认';
				break;
			case 60:
				res = '财务已确认';
				break;
		}
	} else if (type == 3) {
		switch (item.after_sales_status) {
			case 10:
				res = '待分配工程监理';
				break;
			case 20:
				res = '等待工程监理分配工程经理';
				break;
			case 30:
				res = '等待工程经理反馈现场情况';
				break;
			case 40:
				res = '等待工程监理责任判定';
				break;
			case 50:
				res = '等待工程经理整改上传';
				break;
			case 60:
				res = '售后结束';
				break;
		}
	} else if (type == 4) {
		switch (Number(item.object_status)) {
			case 10:
				res = '客户经理已提交优惠审批';
				break;
			case 20:
				res = '客户经理已提交优惠审批，客户总监已通过';
				break;
			default:
		}
	} else if (type == 5) {
		switch (Number(item.object_status)) {
			case 30:
				res = '项目待进场';
				break;
			case 35:
				res = '等待分配施工工程经理';
				break;
			case 40:
				res = '项目待进场';
				break;
			case 42:
				res = '等待开工启动';
				break;
			case 45:
				res = '项目施工中';
				break;
			case 50:
				res = '项目已完工';
				break;
			case 60:
				res = '项目质保中';
				break;
			case 70:
				res = '项目质保到期';
				break;
			default:
		}
	} else if (type == 6) {
		let typeName = '';
		switch (Number(item.object_status)) {
			case 1:
				// res = '等待财务确认勘场勘场费用信息';
				typeName = '勘场费用信息';
				break;
			case 2:
				// res = '等待财务确认预付款信息';
				typeName = '预付款信息';
				break;
			case 3:
				// res = '等待财务确认进度款信息';
				typeName = '进度款信息';
				break;
			case 4:
				typeName = '尾款信息';
				break;
			case 5:
				// res = '等待财务确认增项款信息';
				typeName = '增项款信息';
				break;
			case 6:
				// res = '等待财务确认定金信息';
				typeName = '定金信息';
				break;
			default:
		}

		if (item.status == 10) {
			res = `等待客户总监审核${typeName}`;
		} else if (item.status == 15) {
			res = `${typeName}已被财务拒绝待重新提交`;
		} else if (item.status == 20) {
			res = `等待总经理审核${typeName}`;
		} else if (item.status == 25) {
			res = `${typeName}已被财务拒绝待重新提交`;
		} else if (item.status == 30) {
			res = `等待财务审核${typeName}`;
		} else if (item.status == 35) {
			res = `${typeName}已被财务拒绝待重新提交`;
		} else if (item.status == 40) {
			res = `财务已确认${typeName}`;
		} else {
			// res = `${typeName}已被财务拒绝待重新提交`;
		}

	} else if (type == 7) {
		switch (Number(item.status)) {
			case 1:
				if (item.object_status == 1) {
					res = '工程款付款单已提交待工程监理审核';
				} else if (item.object_status == 2) {
					res = '工程款付款单被拒绝待重新提交';
				} else if (item.object_status == 3) {
					res = '工程款付款单工程监理已审核待造价员审核';
				} else if (item.object_status == 4) {
					res = '工程款付款单造价员已审核待财务审核';
				} else if (item.object_status == 5) {
					res = '工程款付款单财务已审核待出纳确认';
				} else if (item.object_status == 6) {
					res = '工程款付款单已付款';
				}
				break;
			case 2:
				if (item.object_status == 1) {
					res = '供应商退货付款单已提交待工程部经理审核';
				} else if (item.object_status == 2) {
					res = '供应商退货付款单被拒绝待重新提交';
				} else if (item.object_status == 3) {
					res = '供应商退货付款单工程部经理已审核待总经理审核';
				} else if (item.object_status == 4) {
					res = '供应商退货付款单总经理已审核待财务审核';
				} else if (item.object_status == 5) {
					res = '供应商退货付款单财务已审核待出纳确认';
				} else if (item.object_status == 6) {
					res = '供应商退货付款单已付款';
				}
				break;
			case 3:
				if (item.object_status == 1) {
					res = '装修退款付款单已提交待客户总监审核';
				} else if (item.object_status == 2) {
					res = '装修退款付款单被拒绝待重新提交';
				} else if (item.object_status == 3) {
					res = '装修退款付款单客户总监已审核待总经理审核';
				} else if (item.object_status == 4) {
					res = '装修退款付款单总经理已审核待财务审核';
				} else if (item.object_status == 5) {
					res = '装修退款付款单财务已审核待出纳确认';
				} else if (item.object_status == 6) {
					res = '装修退款付款单已付款';
				}
				break;
			default:
		}
	} else if (type == 8) {
		if (item.object_status == 3000) {
			res = '工程监理发起整改，待工程经理提交整改';
		} else if (item.object_status == 3002) {
			res = '工程监理拒绝整改内容，待工程经理提交整改';
		} else if (item.object_status == 3005) {
			res = '工程经理已提交整改内容，待工程监理审核';
		} else if (item.object_status == 3010) {
			res = '工程监理同意整改内容，流程结束';
		}
	}

	return res;
}
export {
	handleSpeedDesc
}